﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SavannaFrame
{
    public partial class AddFrameFrm : Form
    {
        public AddFrameFrm()
        {
            InitializeComponent();
        }

        public string TextBox
        {
            get { return textBox1.Text; }
        }

        private void btOk_Click(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            if (textBox1.TextLength > 0)
            {
                if (textBox1.Text.Contains('#') || textBox1.Text.Contains("==") || textBox1.Text.Contains("!="))
                    btOk.Enabled = false;
                else
                    btOk.Enabled = true;
            }
            else
                btOk.Enabled = false;
        }
    }
}
